package com.ymm.driver.core.constants;

/**
 * 订单操作枚举类型
 *
 * @author guorui
 */
public enum OrderOpsEnum {
    /**
     * 创建订单
     */
    CREATE(0, "创建订单"),
    /**
     * 确认订单
     */
    CONFIRM(1, "确认订单"),
    /**
     * 取消订单
     */
    CANCEL(2, "取消订单"),
    /**
     * 等待确认订单
     */
    WAIT_FOR_CONFIRM(3, "等待确认订单");

    Integer code;
    String message;

    OrderOpsEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
